#include <iostream>
using namespace std;
class base
{
    int x;

public:
    void setx(int a) { x = a; }
    int getx() { return x; }
};
int main()
{
    int *p;
    base a;
    a.setx(15);
    p = new int(a.getx());
    cout << *p << endl;
    delete p;
    return 0;
}